package com.site.dto.backend.system;


import com.site.util.base.businessbean.BaseBusinessBean;

/**
 * 权限
 * @author lee 2012-10-12 
 *
 */
public class AuthorityBizBean extends BaseBusinessBean {

	private static final long serialVersionUID = 1L;

	private Long id;
	
	/*
	 * 权限名称
	 */
	private String name;
	/*
	 * 描述
	 */
	private String description;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof AuthorityBizBean)) {
			return false;
		} else if (((AuthorityBizBean) obj).getId() != null && id != null
				&& ((AuthorityBizBean) obj).getId().intValue() == id.intValue()) {
			return true;
		} else {
			return super.equals(obj);
		}
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return id.hashCode();
	}
}
